<style type="text/css">
    .ml35 {
      margin-left: 35px;
    }
  </style>

<div class="col-sm-12 mt20">

    <div class="panel panel-default">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="用户昵称" ng-model="searchform.nickname">
            </div>
            <div class="col-sm-2" ng-show="flag == 'add'">
                <button class="btn btn-success btn-block" ng-click="add()">添加绑定</button>
            </div>
            <div class="col-sm-2 pull-right">
                <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
            </div>
            <div class="col-sm-2 pull-right">
                <button class="btn btn-primary search btn-block" ng-click="withdarwList()">提现记录</button>
            </div>
        </div>

        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="col-md-2 text-center">用户头像</th>
                        <th class="col-md-2 text-center">用户昵称</th>
                        <th class="col-md-2 text-center">绑定时间</th>
                        <th class="col-md-2 text-center">解绑时间</th>
                        <th class="col-md-2 text-center">绑定状态</th>
                        <th class="col-md-2 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="user in userList">
                        <td class="text-center">
                            <img ng-src="{{user.headimg}}" alt="用户头像" class="" style="border-radius:100px" width="50px" height="50px">
                            <!-- <img src="{{bean.logo}}" alt="分类logo" width="180px" height="120px"> -->
                        </td>
                        <td class="text-center">{{user.nickname}}</td>
                        <td>{{user.create_time}}</td>
                        <td class="text-center">{{user.update_time}}</td>
                        <td class="text-center">
                          <p ng-if="user.del_flag == '0'">已解绑</p>
                          <p ng-if="user.del_flag == '1'">已绑定</p>
                        </td>
                        <td class="text-center">
                            <button type="button" class="btn btn-info btn-xs" ng-click="withdraw(bean)" ng-show="user.del_flag == '1'">提现</button>
                            <button type="button" class="btn btn-danger btn-xs" ng-click="delete(bean)" ng-show="user.del_flag == '1'">解绑</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="pageInfo.totalItems" ng-model="pageInfo.pageNo" ng-change="loadlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false" items-per-page="pageInfo.pageSize"
                class="m-t-none m-b"></pagination>
        </div>

    </div>
</div>